package com.example.utils;

/**
 * k线一些常用的计算
 */
public class CountUtil {
    /**
     * 得到涨跌幅
     * @param close
     * @param dangqian
     * @param scale
     * @return
     */
    public static String getChg(String close,String dangqian,int scale)
    {

        String s1= NumberUtil2.getSubString(dangqian,close,scale+3);
        s1= NumberUtil2.getDivString(s1,close,scale+6);
        s1= NumberUtil2.getString(s1,"100",2);
        if(NumberUtil2.isDaYu(s1,"0")>0)
        {
            s1="+"+s1;
        }
        return  s1;
    }
}
